extends KinematicBody
var angle
var speed=100
func _ready():
	pass 
# warning-ignore:unused_argument
func _process(delta):
	var kine=move_and_collide(Vector3(0,0,-0.5).rotated(Vector3(0,1,0),deg2rad(angle)))
	if kine:
		var collider=kine.get_collider()
		print_debug("子弹碰到了",collider.name)
		if "enemy" in collider.name:
			collider.queue_free()
			self.queue_free()
		if "map" in collider.name:
			self.queue_free()
	pass
